# @Version : 1.0
# @Author  : wxz
# @File    : user_exception.py
# @Time    : 2025/5/28 21:18
# @Describe: 描述...

from commons.exception_handler import BaseAPIException

class UserNotFoundException(BaseAPIException):

    def __init__(self, ):
        self.status_code = 200
        self.code = 1001
        self.message = '用户不存在'


class UserAlreadyExistsException(BaseAPIException):

    def __init__(self, ):
        self.status_code = 200
        self.code = 1002
        self.message = '用户已经被注册了'


class UsernameOrPwdException(BaseAPIException):

    def __init__(self,):
        self.status_code = 200
        self.code = 1003
        self.message = '用户名或密码错误'

class PwdInconsistent(BaseAPIException):

    def __init__(self):
        self.status_code = 200
        self.code = 1004
        self.message = "两次密码不一致"

class RepeatLogin(BaseAPIException):

    def __init__(self):
        self.status_code = 200
        self.code = 1005
        self.message = "已经登录"